package com.aaa.arouterone.testcoroutines

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.aaa.arouterone.R
import kotlinx.coroutines.*

/**
 *  测试协程
 *  @author lfc-LFC
 *  created at 2021/3/31 11:28
 */

class CoroutineSocpeTestA : AppCompatActivity(), CoroutineScope by MainScope() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_coroutine_socpe_test)
        initView()
        initData()
    }

    private fun initView() {

    }

    private fun initData() {
        GlobalScope.launch {

        }


    }

    override fun onDestroy() {
        cancel()
    }
}